﻿///////////////////////////////////////////////////////////////
//                                                           //
// Code from Arcanea Project.                                //
//                                                           //
// Please include this license part to every reproduction    //
//   of code.                                                //
//                                                           //
// This code is under Ms-RL license                          //
//                                                           //
// Please read futher information about the license,         //
//   the project (news and updates) and the                  //
//   contributors on the address :                           //
//     http://www.codeplex.com/Arcanea/                      //
//                                                           //
///////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
//using System.Linq;
using System.Text;
using Arcanea.NetworkEngine.Abstract.Engines;

namespace Arcanea.NetworkEngine.Concrete.Engines.Compression
{
    /// <summary>
    /// Engine de compression neutre (identite)
    /// </summary>
    public class NoneCompressionEngine : ICompressionEngine
    {
        public override byte[] Compress(byte[] arrayUncompresed)
        {
            logger.Debug("Compress trame from " + arrayUncompresed.Length + " to " + arrayUncompresed.Length);
            return arrayUncompresed;
        }
        public override byte[] Decompress(byte[] arrayCompresed)
        {
            logger.Debug("Decompress trame from " + arrayCompresed.Length + " to " + arrayCompresed.Length);
            return arrayCompresed;
        }
    }
}
